Global Index
HTML5 JS API Index > Browser Tutorials & Specs

ErrorEvent

Extends Event.

The message attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the error message.

Properties
unsigned long
colno
The colno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the column number where the error occurred in the script.
any
error
The error attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. Where appropriate, it is set to the object representing the error (e.g. the exception object in the case of an uncaught DOM exception).
DOMString
filename
The filename attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the absolute URL of the script in which the error originally occurred.
unsigned long
lineno
The lineno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the line number where the error occurred in the script.
DOMString
message
The message attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the error message.
Constructor
ErrorEvent(DOMString type, optional ErrorEventInit eventInitDict)